#!/bin/bash

targets=$1

#while read line
#do
	nmap -sL -n $1 | grep "Nmap scan report" | awk '{ print $5 }' | tee -a targets.output 
#done < $targets
